package com.jsoft.constant;

public interface Constants {
    //token前缀
    String TOKEN_PREFIX = "token:";
    String CAPTCHA_PREFIX = "captcha:";
    String PHONE_CAPTCHA_PREFIX = "captcha:";
    //用户名前缀
    String USERNAME_PREFIX = "user_";
    //请求头
    String HEADER_AUTHORIZATION = "Authorization";
    String HEADER_USERNAME = "username";
    String HEADER_USERID = "userId";
    //token时间
    Long TOKEN_TIME = 20 * 60L;
    Long CAPTCHA_TIME = 10 * 60L;
    //角色权限前缀
    String ROLE_PREFIX = "role:";
    String PERM_PREFIX = "perm:";
    String REPEAT_PREFIX = "repeat:";
}
